home *** CD-ROM | disk | FTP | other *** search
- //TGpFileGroup demo - Application part
-
- program FileGroupApplication;
- {$APPTYPE CONSOLE}
- uses
- SysUtils,
- GpFileSync;
-
- var
- grp: TGpFileGroup;
-
- begin
- grp := TGpFileGroup.Create('demo.grp');
- try
- if not grp.Join(5000) then
- Writeln('Cannot join.')
- else begin
- try
- Writeln('Application running, press Enter to terminate...');
- Readln;
- finally grp.Leave(5000) end;
- end;
- finally FreeAndNil(grp); end;
- end.
-